import { request } from '@/utils/request';
const Api = {
  List: '/setting/lang/list',
  info: '/setting/lang/',
  add: '/setting/lang',
};

// 列表
export function getLangList(params: any) {
  return request.get({
    url: Api.List,
    params,
  });
}

// 新增
export function add(data: any) {
  return request.post({
    url: Api.add,
    data,
  });
}

// 详情
export function getInfo(id: string | number) {
  return request.get({
    url: Api.info + id,
  });
}

// 编辑
export function edit(data: any) {
  return request.put({
    url: Api.add,
    data,
  });
}

// 删除
export function Delete(ids: string) {
  return request.delete({
    url: Api.info + ids,
  });
}
